package Text;

import java.util.Scanner;

public class Nixu {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        while (num != 0) {
            int a = num % 10;
            num = num / 10;
            System.out.print(a);
        }
    }
}

